package cn.swpu.blog.schedule;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @Author 冰翔
 * @Date 2021/3/3 21:48
 */
@Slf4j
public class RedisScheduleJob extends QuartzJobBean {

    public RedisScheduleJob() {
        super();
    }

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        log.info("RedisScheduleJob--------,设置业务逻辑，讲Redis中的访问数据重新写入到数据库中");

    }
}
